package com.mode.composite.pattern;

/**
 * 具体部门，类似于树叶
 */
public class HRDepartment extends Company {

    public HRDepartment(String name) {
        super(name);
    }

    @Override
    public void add(Company company) {

    }

    @Override
    public void remove(Company company) {

    }

    @Override
    public void display(int depth) {
        for (int i = 0; i < depth; i++) {
            System.out.print("-");
        }
        System.out.println(getName());
    }

    @Override
    public void LineOfDuty() {
        System.out.println(getName() + "\t员工培训");

    }

}
